package com.boho.system.action;


             
/**
 * 
 *
 * @File name:  GetTSysUserAction.java   根据主键查询【系统后台用户:T_USER】
 * @Create on:  2010-05-10 11:27:218
 * @Author   :  陈伟
 *
 * @ChangeList
 * ---------------------------------------------------
 * Date         Editor              ChangeReasons
 *
 */
           
        

            
import cn.boho.framework.actions.ActionImp;
import cn.boho.framework.context.ActionContext;
import cn.boho.framework.po.DynaBeanMap;
import cn.boho.framework.service.MessageService;

import com.boho.system.service.UserService;



public class GetTSysUserAction extends ActionImp {
	@Override
	protected void doException(ActionContext atx, Exception ex) {
		atx.setErrorContext("BOHO_COMMON_1004", MessageService.getMessage("BOHO_COMMON_1004"),"【系统后台用户】", ex);
	}
	@SuppressWarnings("unchecked")
	@Override
	protected int performExecute(ActionContext atx) throws Exception {
		Integer userID = atx.getIntegerValue("USER_ID",0);
		DynaBeanMap dbm = UserService.getUserByPK(atx, userID);
		atx.setObjValue("T_SYS_USER", dbm);
		return 1;
	}
	@Override
	protected int verifyParameters(ActionContext atx) throws Exception {
		return 1;
	}
}
